package com.wisevar.thirdplatform.gateway.model.common;

import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
public enum ResultCode implements IResultCode {

    SUCCESS(200, "请求成功"),
    PARAM_ERROR(4001, "参数错误"),
    REPEATED_SUBMIT(4002, "重复提交"),
    SIGN_ERR(4101, "签名错误"),
    SIGN_TIME_OUT(4102, "请求(签名)过期"),
    IP_NOT_FOUND(4103, "请求 IP 不在白名单列表"),
    TOO_MANY_REQUEST(4105, "请求过于频繁"),
    CLIENT_ID_NOT_FOUND(5001, "clientId 不存在"),
    SERVER_ERROR(9999, "系统异常");

    /**
     * 状态码
     */
    final int code;

    /**
     * 信息描述
     */
    final String msg;

}
